<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
</head>
<body>
    <h2>标题</h2>
    <img src="images/02.jpg" alt="">
    <p>出版社</p>
    <script>
    var url="https://api.douban.com/v2/book/search?q=%E6%8B%A9%E5%A4%A9%E8%AE%B0&count=1";
    $.ajax({
        type:"get",
        url,
        dataType:"jsonp",
        success(res){
            var imgUrl=res.books[0].images.small;
            var title=res.books[0].title;
            var publisher=res.books[0].publisher;
            $("img").attr("src",imgUrl);
            $("h2").html(title);
            $("p").html(publisher);
        }
    })
    </script>
</body>
</html>